package com.piece.core.framework.enums;

import java.io.Serializable;

@FunctionalInterface
public interface PieceSFunction<R> extends Serializable {

    R call() throws Exception;

    default R callWithRuntimeException() {
        try {
            return this.call();
        } catch (Exception var2) {
            throw new RuntimeException(var2);
        }
    }
}
